package com.example.demo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author GuoMingXi @Email guomingxi2018@163.com
 * @Create 2022/5/31 11:54
 * @Version V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {

    /**
     * 学生姓名
     */
    @ExcelProperty(index = 0,value = "学生姓名 ")
    private String name;
    /**
     * 学生性别
     */
    @ExcelProperty(index = 2,value = "性别")
    private String gender;

    /**
     * 学生出生日期
     */
    @ExcelProperty(index = 1,value = "出生日期")
    private Date birthday;
    /**
     * id
     */
    @ExcelIgnore
    private String id;


    // 循环生成10个学生对象

}
